package com.project.bean.InventoryManagement;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("details_info")
//出库详情实体
public class DetailsBean {

    @TableId(value = "details_id",type = IdType.AUTO)
    private Integer detailsId;


    @TableField("details_num")
    private Integer detailsNum = 1;

    public DetailsBean() {
    }

    public DetailsBean(Integer detailsNum) {
        this.detailsNum = detailsNum;
    }

    public DetailsBean(Integer detailsId, Integer detailsNum) {
        this.detailsId = detailsId;
        this.detailsNum = detailsNum;
    }

    public Integer getDetailsId() {
        return detailsId;
    }

    public void setDetailsId(Integer detailsId) {
        this.detailsId = detailsId;
    }

    public Integer getDetailsNum() {
        return detailsNum;
    }

    public void setDetailsNum(Integer detailsNum) {
        this.detailsNum = detailsNum;
    }

    @Override
    public String toString() {
        return "DetailsBean{" +
                "detailsId=" + detailsId +
                ", detailsNum=" + detailsNum +
                '}';
    }
}
